<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<base href="<%=basePath%>">

<title>My JSP 'index.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
  $("h1").click(function(){
  $(this).hide();
  });
  alert("from javascript alert.");
});
</script>

</head>

<body>
	<s:form action="LoginAction.action">
		<s:textfield label="user name" name="username"></s:textfield>
		<s:password label="password" name="password"></s:password>
		<s:submit value="login"></s:submit>
	</s:form>
	<br/>
	<div></div>
	
	<s:form action="CategoryAction.action">
		<s:textfield lable="category name" name="categoryname"></s:textfield>
		<s:submit value="add category"></s:submit>
	</s:form>
	
	<select>
	<option selected value="">please select category"</option>
	
	</select>
	<h1> this is h1</h1>
</body>


</html>
